#ifndef CATALOGTABLE_H
#define CATALOGTABLE_H
#include<QTreeWidget>
#include"geomap.h"


class catalogTable:public QTreeWidget
{
    Q_OBJECT
public:
    explicit catalogTable(QWidget *parent =nullptr);
    ~catalogTable();
    geoMap *map;
    QVector<QTreeWidgetItem *>layers;

    //树层次勾选相关
    void updateChild(QTreeWidgetItem *item,int column);
    void updateParent(QTreeWidgetItem *item,int column);

public slots:
    void onTreeItemSelectChanged(QTreeWidgetItem*,int);//树层次勾选
    void onSearchStateChanged(int layerId,int objectId);//被搜索项显示
    void initCatalog(geoMap* map1);//初始化

};

#endif // CATALOGTABLE_H
